package com.lzy.api.feign;

import com.lzy.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

//使用接口时调用进行微服务之间通信 服务的注册
@FeignClient(value = "main-service")
public interface UserInfoMicroServiceFeign {
    @PostMapping("userinfo/updateFace")
    public GraceJSONResult updateFace(@RequestParam("userId") String userId,
                                      @RequestParam("face") String face);

    @PostMapping("userinfo/updateFriendCircleBg")
    public GraceJSONResult updateFriendCircleBg(@RequestParam("userId") String userId,
                                                @RequestParam("FriendCircleBg") String FriendCircleBg);

    @PostMapping("userinfo/uploadChatBg")
    public GraceJSONResult uploadChatBg(@RequestParam("userId") String userId,
                                        @RequestParam("FriendCircleBg") String chatBg);
}
